CC=gcc
LINK=$(CC) -o
PKG=buftest
CFLAGS=-O0 -g3 -Wall
LDLIBS=
RM=rm

OBJS= ./buf.o
.PHONY: all
all: $(PKG)

./buf.o: ./buffer.c
	$(CC) $(CFLAGS) -o $@ -c ./buffer.c

./buftest: ./buffer.c ./buffer.h ./test/buf.c
	$(CC) $(CFLAGS) -o $@ $^

.PHONY: clean
clean:
	$(RM) -rf $(OBJS) $(LIB)
.PHONY: test
test:
